/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-5-7 上午11:11 Created by sky
 */
package com.jade.bss.base.provision.customer;

import com.jade.bss.base.customer.Customer;
import com.jade.bss.base.provision.ProvisionContext;

/**
 * 客户业务处理的上下文，应用于新增/注销个人用户、新增/注销企业用户。
 *
 * @author sky
 * @version 1.0 13-5-7 上午11:11
 */
public class CustomerContext   extends ProvisionContext
{
    /* 定义一些常用类型 */
    public static final String TYPE_REGISTER_CUSTOMER = "register_customer";
    public static final String TYPE_DEREGISTER_CUSTOMER = "deregister_customer";

    public static final String TYPE_REGISTER_ENTERPRISE = "register_enterprise";
    public static final String TYPE_DEREGISTER_ENTERPRISE = "deregister_enterprise";

    protected Customer customer;
    protected long customerId;

    public CustomerContext(String type)
    {
        super(type);
    }

    public Customer getCustomer()
    {
        return customer;
    }

    public void setCustomer(Customer customer)
    {
        this.customer = customer;
    }

    public long getCustomerId()
    {
        return customerId;
    }

    public void setCustomerId(long customerId)
    {
        this.customerId = customerId;
    }
}
